<!DOCTYPE HTML>
<html lang="en-US">

<head>
    <meta charset="UTF-8">
    <title>ueditor demo</title>
	<script
	  type="text/javascript"
	  src="https://cdn.jsdelivr.net/npm/wangeditor@latest/dist/wangEditor.min.js"
	></script>
</head>

<body>
	<!-- <h1>wangEditor</h1>
	<div id="editor">
		
	</div>
    <script type="text/javascript">
		import E from 'wangeditor'
		// const editor = new E('#div1')
		const editor = new E( document.getElementById('editor') )
		editor.create()
	</script> -->
	
	<div id="div1">
	    <p>欢迎使用 <b>wangEditor</b> 富文本编辑器</p>
	</div>
	
	<!-- 引入 wangEditor.min.js -->
	<script type="text/javascript">
	    const E = window.wangEditor
	    // const editor = new E('#div1')
	    const editor = new E( document.getElementById('div1') )
	    editor.create()
	</script>
</body>

</html>